TARGET = dvm.o
CFLAGS = -c -g -DDEBUG -Wall -ansi -pedantic -Wswitch-enum
OBJS = execute.o \
  load.o \
  heap.o \
  native.o \
  nativeif.o \
  wchar.o \
  util.o \
  error.o \
  error_message.o

$(TARGET):$(OBJS)
	ld -r -o $@ $(OBJS)
.c.o:
	$(CC) $(CFLAGS) -I../include $*.c
error.o: error.c ../include/MEM.h ../include/DBG.h dvm_pri.h \
  ../include/DVM_code.h ../include/DVM.h ../include/DVM_dev.h \
  ../include/DVM_code.h ../include/share.h ../include/DKC.h
error_message.o: error_message.c dvm_pri.h ../include/DVM_code.h \
  ../include/DVM.h ../include/DVM_dev.h ../include/DVM_code.h \
  ../include/share.h ../include/DKC.h
execute.o: execute.c ../include/MEM.h ../include/DBG.h dvm_pri.h \
  ../include/DVM_code.h ../include/DVM.h ../include/DVM_dev.h \
  ../include/DVM_code.h ../include/share.h ../include/DKC.h
heap.o: heap.c ../include/MEM.h ../include/DBG.h dvm_pri.h \
  ../include/DVM_code.h ../include/DVM.h ../include/DVM_dev.h \
  ../include/DVM_code.h ../include/share.h ../include/DKC.h
load.o: load.c ../include/DKC.h ../include/DVM_code.h ../include/DVM.h \
  ../include/MEM.h ../include/DBG.h dvm_pri.h ../include/DVM_code.h \
  ../include/DVM_dev.h ../include/share.h ../include/DKC.h
native.o: native.c ../include/MEM.h ../include/DBG.h dvm_pri.h \
  ../include/DVM_code.h ../include/DVM.h ../include/DVM_dev.h \
  ../include/DVM_code.h ../include/share.h ../include/DKC.h
nativeif.o: nativeif.c ../include/MEM.h ../include/DBG.h dvm_pri.h \
  ../include/DVM_code.h ../include/DVM.h ../include/DVM_dev.h \
  ../include/DVM_code.h ../include/share.h ../include/DKC.h
util.o: util.c ../include/MEM.h ../include/DBG.h dvm_pri.h \
  ../include/DVM_code.h ../include/DVM.h ../include/DVM_dev.h \
  ../include/DVM_code.h ../include/share.h ../include/DKC.h
wchar.o: wchar.c ../include/DBG.h ../include/MEM.h dvm_pri.h \
  ../include/DVM_code.h ../include/DVM.h ../include/DVM_dev.h \
  ../include/DVM_code.h ../include/share.h ../include/DKC.h
